package com.runen.infinitemovement.adapter;

import android.content.Context;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.runen.infinitemovement.R;
import com.runen.infinitemovement.tool.GlideUtils;
import com.runen.infinitemovement.widget.imageview.RoundedCornersImage;

import java.util.List;

public class MyDynamicStatePictureAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    private Context context;

    public MyDynamicStatePictureAdapter(Context context) {
        super(R.layout.item_my_dynamicstate_picture);
        this.context = context;
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, String item) {
        RoundedCornersImage rci_picture = helper.getView(R.id.rci_picture);
        GlideUtils.loadImage(context,item+"?x-oss-process=image/resize,m_fill,w_144,h_144",rci_picture);
    }
}
